package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @author with葡萄成熟时
 * @version 1.0
 */
/**
 * @description: 查询用户登录信息
 * @param:
 * @return:
 * @author Wait葡萄成熟时
 * @date: 下午2:28 2024/11/11
 */
@Mapper
public interface UserMapper {


    @Select("select *from user where openid=#{openid}")
    User getByOpenid(String openid);

    void insert(User user);

    Integer countByMap(Map map);
}
